package com.jinghua.treatment.entity;

import com.jinghua.treatment.tools.DateUtil;
import com.jinghua.treatment.tools.StringUtil;

import java.util.Date;

public class SysPatient {
    private Integer patientId;

    private Integer historyId;

    private String patientname;

    private String age;

    private Integer days;

    private DPRelationship dpRelationship;

    private String initial;     // 患者名称拼音首字母

    private String lastName;    // 存储患者名称姓的首字母

    private String wechat;      // 微信id

    private Date birthday;

    private String sex;

    private Double hight;

    private Double weight;

    private String phone;

    private Date patientCreatedate;

    private Date patientModifydate;

    private Date lastdate;

    private String patientDescription;

    private String remark;

    private String inquiryHistory;

    private String inquiryAllergy;

    private String ageStr;

    public String getAgeStr(){
        if(birthday!=null){
           return  ""+DateUtil.getAgeByBirth(birthday);
        }
        return "";
    }

    public DPRelationship getDpRelationship() {
        return dpRelationship;
    }

    public void setDpRelationship(DPRelationship dpRelationship) {
        this.dpRelationship = dpRelationship;
    }

    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getInquiryHistory() {
        return inquiryHistory;
    }

    public void setInquiryHistory(String inquiryHistory) {
        this.inquiryHistory = inquiryHistory;
    }

    public String getInquiryAllergy() {
        return inquiryAllergy;
    }

    public void setInquiryAllergy(String inquiryAllergy) {
        this.inquiryAllergy = inquiryAllergy;
    }

    private String patientPicPath;  // 头像地址

    private String nickName;        // 微信昵称

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPatientPicPath() {
        return patientPicPath;
    }

    public void setPatientPicPath(String patientPicPath) {
        this.patientPicPath = patientPicPath;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getInitial() {
        return initial;
    }

    public void setInitial(String initial) {
        this.initial = initial;
    }





    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public Integer getHistoryId() {
        return historyId;
    }

    public void setHistoryId(Integer historyId) {
        this.historyId = historyId;
    }

    public String getPatientname() {
        return patientname;
    }

    public void setPatientname(String patientname) {
        this.patientname = patientname == null ? null : patientname.trim();
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public Double getHight() {
        return hight;
    }

    public void setHight(Double hight) {
        this.hight = hight;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Date getPatientCreatedate() {
        return patientCreatedate;
    }

    public void setPatientCreatedate(Date patientCreatedate) {
        this.patientCreatedate = patientCreatedate;
    }

    public Date getPatientModifydate() {
        return patientModifydate;
    }

    public void setPatientModifydate(Date patientModifydate) {
        this.patientModifydate = patientModifydate;
    }

    public Date getLastdate() {
        return lastdate;
    }

    public void setLastdate(Date lastdate) {
        this.lastdate = lastdate;
    }

    public String getPatientDescription() {
        return patientDescription;
    }

    public void setPatientDescription(String patientDescription) {
        this.patientDescription = patientDescription == null ? null : patientDescription.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }
}